package com.yuanfeng.business.dto;

import com.yuanfeng.commoms.constant.CommonType;
import com.yuanfeng.commoms.util.querypage.PageHelper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName ShopClassQueryDTO
 * @Description
 * @Author cf
 * @Date 2023/6/20 14:26
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopClassQueryDTO extends PageHelper {

    /**
     * 店铺分类id
     */
    private Integer shopClassId;
    /**
     * 默认普通店铺
     */
    private Integer shopType;

    /**
     * 店铺分类名称
     */
    private String shopClassName;


    public Integer getShopType() {
        return (null == shopType || shopType.intValue() == 0)? CommonType.ShopType.COMMON_SHOP.getCode() : shopType;
    }
}
